import request from '@/utils/request'

// 查询养护计划列表
export function listMaintainPlan(query) {
  return request({
    url: '/equipment/maintainPlan/list',
    method: 'get',
    params: query
  })
}

// 查询养护计划详细
export function getMaintainPlan(id) {
  return request({
    url: '/equipment/maintainPlan/' + id,
    method: 'get'
  })
}

// 新增养护计划
export function addMaintainPlan(data) {
  return request({
    url: '/equipment/maintainPlan',
    method: 'post',
    data: data
  })
}

// 修改养护计划
export function updateMaintainPlan(data) {
  return request({
    url: '/equipment/maintainPlan',
    method: 'put',
    data: data
  })
}

// 删除养护计划
export function delMaintainPlan(id) {
  return request({
    url: '/equipment/maintainPlan/' + id,
    method: 'delete'
  })
}
